<?php $this->load->view('public/header');?>
<link href="<?php echo __STATIC__?>search/css/oldstyle.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo __STATIC__?>search/images/jquery-1.js"></script>
<script type="text/javascript" src="<?php echo __STATIC__?>search/images/labelauty.js"></script>
<script>
$(document).ready(function(){
    $(".dropdown").hover(            
        function() {
            $('.dropdown-menu', this).stop( true, true ).slideDown("fast");
            $(this).toggleClass('open');        
        },
        function() {
            $('.dropdown-menu', this).stop( true, true ).slideUp("fast");
            $(this).toggleClass('open');       
        }
    );
});
</script>

<style>
.rdolist, .chklist {
    display: none;
}

.rdobox, .chkbox {
    display: inline-block;
	padding: 10px;
	height: 35px;
    line-height: 16px;
    background: #eee;
    border-radius: 3px;
    color: #666;
    font-family: 'Microsoft YaHei';
}

.check-image {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-top: -4px;
    background: url(<?php echo __STATIC__?>search/images/input-unchecked.png) no-repeat;
    vertical-align: middle;
}

.unchecked {
    background: #ECF0F1;
    color: #666;
    transition-property: background;
    transition-delay: 0s;
    transition-duration: .1s;
    transition-timing-function: linear;
}

    .unchecked:hover {
        background: #dedfe0;
    }

.checked {
    background: #3498DB;
    color: #fff;
}




</style>
    <script>

        $(document).ready(function () {

            //参数{input类名，选择类型(单选or多选)}

            $(".rdolist").labelauty("rdolist", "rdo");

            $(".chklist").labelauty("chklist", "check");

        });

    </script>
<!-- banner -->
 <form class="form-search" id="q-form" method="get">
  <div class="courses_banner">
  	<div class="container">
     	<div class="container">
			<div class="newsletter">
			  
				<input type="text" name="q" value="<?php echo htmlspecialchars($q); ?>" size="30" required="" placeholder="输入任意关键词皆可搜索">
				<input type="submit" value="搜索">
			  
            </div>
        </div>
		<div class="col-md-12" style="padding-top: 20px;">
        <div class="condition" id="q-options">
		<div class="col-md-1"></div>
		<div class="col-md-8">
			
			<div class="rdo">
				<input class="rdolist" type="radio" name="f" value="name" <?php echo $f_name; ?> />
				<label class="rdobox checked">
				<span style="background: transparent url(&quot;<?php echo __STATIC__?>search/images/input-checked.png&quot;) repeat scroll 0% 0%;" class="check-image"></span>
				<span class="radiobox-content">名称</span>
				</label>
				<input class="rdolist" type="radio" name="f" value="cid" <?php echo $f_cid; ?> />
				<label class="rdobox checked">
				<span style="background: transparent url(&quot;<?php echo __STATIC__?>search/images/input-checked.png&quot;) repeat scroll 0% 0%;" class="check-image"></span>
				<span class="radiobox-content">申请号</span>
				</label>
				
				<!--<label class="radio inline"><input type="radio" name="f" value="day" <?php echo $f_day; ?> />Day</label>
				<label class="radio inline"><input type="radio" name="f" value="service" <?php echo $f_service; ?> />Service</label>-->
				<input class="rdolist" type="radio" name="f" value="cnname" <?php echo $f_cnname; ?> />
				<label class="rdobox checked">
				<span style="background: transparent url(&quot;<?php echo __STATIC__?>search/images/input-checked.png&quot;) repeat scroll 0% 0%;" class="check-image"></span>
				<span class="radiobox-content">申请人</span>
				</label>
				<!--<label class="radio inline"><input type="radio" name="f" value="cnaddress" <?php echo $f_cnaddress; ?> />Cnaddress</label>
				<label class="radio inline"><input type="radio" name="f" value="enname" <?php echo $f_enname; ?> />Enname</label>
				<label class="radio inline"><input type="radio" name="f" value="enaddress" <?php echo $f_enaddress; ?> />Enaddress</label>-->
				<input class="rdolist" type="radio" name="f" value="servicecomany" <?php echo $f_servicecomany; ?> />
				<label class="rdobox checked">
				<span  style="background: transparent url(&quot;<?php echo __STATIC__?>search/images/input-checked.png&quot;) repeat scroll 0% 0%;" class="check-image"></span>
				<span class="radiobox-content">代理公司</span>
				</label>
				<!--<label class="radio inline"><input type="radio" name="f" value="shenqingdate" <?php echo $f_shenqingdate; ?> />Shenqingdate</label>
				<label class="radio inline"><input type="radio" name="f" value="datano" <?php echo $f_datano; ?> />Datano</label>
				<label class="radio inline"><input type="radio" name="f" value="chushenno" <?php echo $f_chushenno; ?> />Chushenno</label>
				<label class="radio inline"><input type="radio" name="f" value="threeyeardate" <?php echo $f_threeyeardate; ?> />Threeyeardate</label>
				<label class="radio inline"><input type="radio" name="f" value="enddate" <?php echo $f_enddate; ?> />Enddate</label>
				<label class="radio inline"><input type="radio" name="f" value="trends" <?php echo $f_trends; ?> />Trends</label>-->
				<input class="rdolist" type="radio" name="f" value="_all" <?php echo $f__all; ?> />
				<label class="rdobox checked">
				<span  style="background: transparent url(&quot;<?php echo __STATIC__?>search/images/input-checked.png&quot;) repeat scroll 0% 0%;" class="check-image"></span>
				<span class="radiobox-content">全文</span>
				</label>
				&nbsp;&nbsp;&nbsp;
				<input class="chklist" type="checkbox" name="m" value="yes" <?php echo $m_check; ?> />
				<label class="chkbox checkeds">
				<span  class="check-image"></span>
				<span class="radiobox-content">模糊搜索</span>
				</label>
			  
				<input class="chklist" type="checkbox" name="syn" value="yes" <?php echo $syn_check; ?> />
				<label class="chkbox checkeds">
				<span  class="check-image"></span>
				<span class="radiobox-content">同义词</span>
				</label>
			 </div>
          
		  </div>
		  <div class="col-md-2"> 
          <select name="s" size="1">
            <option value="relevance">相关性</option>
			<option value="cid_DESC" <?php echo $s_cid_DESC; ?>>Cid从大到小</option>
					<option value="cid_ASC" <?php echo $s_cid_ASC; ?>>Cid从小到大</option>
					<option value="class_DESC" <?php echo $s_class_DESC; ?>>Class从大到小</option>
					<option value="class_ASC" <?php echo $s_class_ASC; ?>>Class从小到大</option>
					<option value="datano_DESC" <?php echo $s_datano_DESC; ?>>Datano从大到小</option>
					<option value="datano_ASC" <?php echo $s_datano_ASC; ?>>Datano从小到大</option>
					<option value="chushenno_DESC" <?php echo $s_chushenno_DESC; ?>>Chushenno从大到小</option>
					<option value="chushenno_ASC" <?php echo $s_chushenno_ASC; ?>>Chushenno从小到大</option>
					<option value="threeyeardate_DESC" <?php echo $s_threeyeardate_DESC; ?>>Threeyeardate从大到小</option>
					<option value="threeyeardate_ASC" <?php echo $s_threeyeardate_ASC; ?>>Threeyeardate从小到大</option>
          </select>
          </div>
		</div>
	</div>
	</div>
</div>
</form>

   <!-- //banner -->
	<div class="courses_box1">
	   <div class="container">
			   
				<?php if (!empty($q)): ?>
		   <div class="col-md-12">
			  <!-- neck bar -->
			  <?php if (!empty($error)): ?>
					<p class="text-error"><strong>错误：</strong><?php echo $error; ?></p>
			  <?php else: ?>
					<p class="result">大约有<b><?php echo number_format($count); ?></b>项符合查询结果，库内数据总量为<b><?php echo number_format($total); ?></b>项。（搜索耗时：<?php printf('%.4f', $search_cost); ?>秒）</p>
			  <?php endif; ?>
			  
			  <!-- fixed query -->
			  <?php if (count($corrected) > 0): ?>
					<div class="link corrected">
						<h4>您是不是要找：</h4>
						<p>
						  <?php foreach ($corrected as $word): ?>
						  <span><a href="<?php echo $_SERVER['SCRIPT_NAME'] . '?q=' . urlencode($word); ?>" class="text-error"><?php echo $word; ?></a></span>
						  <?php endforeach; ?>
						</p>
					  </div>
			  <?php endif; ?>
			  
			  <!-- empty result -->
			  <?php if ($count === 0 && empty($error)): ?>
			  <div class="demo-error">
				<p class="text-error">未找到 <i style="font-size: 16px;color: rgb(255, 116, 116);"><?php echo htmlspecialchars($q); ?></i> 相符的内容或信息。</p>
					<div class="row">
						<div class="col-md-12">
						恭喜你，这个商标可以申请<a href="" class="btn btn-success">立即申请</a>
						</div>
					</div>
					
			   <h5>建议您：</h5>
				<ul>
				  <li>1.请检查输入字词有无错误。</li>
				  <li>2.请换用另外的查询字词。</li>
				  <li>3.请改用较短、较为常见的字词。</li>
				</ul>
			  </div>
			
			  <?php endif; ?>
			</div>
		</div>

		<div class="col-md-8 detail">
	       <div class="event-page">
	       	 <div class="row">
			 <?php foreach ($docs as $doc): ?>
	       	 	<div class="col-xs-4 col-sm-4">
	       	 	  <div class="event-img">
	       	 		<a href="show.php?id=<?php echo $doc->id; ?>" target="_blank"><img src="<?php echo htmlspecialchars($doc->imgurl); ?>" class="img-responsive" alt=""/></a>
	       	 		<div class="over-image"></div>
	       	 	  </div>
	       	 	</div>
	       	 	<div class="col-xs-8 col-sm-8 event-desc">
	       	 		<h2><a href="show.php?id=<?php echo $doc->id; ?>" target="_blank"><?php echo $doc->rank(); ?>. <?php echo $search->highlight(htmlspecialchars($doc->name)); ?>
					
					</a><small><?php //echo $doc->percent(); ?></small></h2>
	       	 	    <div class="event-info-text">
	       	 		   <div class="event-info-middle"><p style="display:inline;"><span class="event-bold">类别 : &nbsp;</span><?php echo htmlspecialchars($doc->class); ?></p>
       	 				   
						   <!--<ul class="event-speakers" style="display:inline">
       	 						<li><a href="event_single.html">Handful</a></li>
       	 						<li><a href="event_single.html">Renaissance</a></li>
       	 						<li><a href="event_single.html">Doloremque</a></li>
       	 						<li><a href="event_single.html">Temporibus</a></li>
       	 				   </ul>-->
       	 				   <p><span class="event-bold">申请日 : &nbsp;</span><?php echo htmlspecialchars($doc->day); ?></p>
       	 				   <p><span class="event-bold">申请人 : &nbsp;</span><?php echo htmlspecialchars($doc->cnname); ?></p>
       	 				   <p><span class="event-bold">代理机构 : &nbsp;</span><?php echo htmlspecialchars($doc->servicecomany); ?></p>
							<?php 
						   $arr = explode("|", $doc->trends);
						   ?>
							<p><span class="event-bold">状态 : &nbsp;</span>
							<span class="label badge-success" style="font-size: 14px;"><?php echo htmlspecialchars(substr($arr[1],-12)); ?></span></p>
						   
	       	 		   </div>
	       	 	    </div>
	       	  </div>
			  
			<?php endforeach; ?>
	       	</div>
		   </div>
			<?php if (!empty($pager)): ?>
				<ul class="pagination event_pagination">
	   	 	<!--<li class="active"><a href="#">1</a></li>-->
					<?php echo $pager; ?>
	   	 	<!--<li><a href="#">2</a></li>-->
				</ul>
			<?php endif; ?>
		</div>
		<?php endif; ?>
	</div>
 
<!-- banner end -->
  
<!-- section  -->
<div class="section clearfix">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<h1 class="text-center">注册商标的好处</h1>
				<div class="separator"></div>
				<p class="lead text-center">不要让商标成为产品市场拦路虎</p>
				<br>
				<div class="row">
					<div class="col-md-6">
						<h2 class="title">申请商标 快速布局市场</h2>
						<div class="row">
							<div class="col-md-4">
								<img width="150px" height="150px"
									src="<?php echo __STATIC__?>images/shangbiaozhuanrang.png"
									alt="">
							</div>
							<div class="col-md-8">
								<p>进驻各大型卖场、超市的资格凭证；入驻大型超市或天猫/京东等大型网络商城平台的必备条件；</p>
								<p>进驻各大型卖场、超市的资格凭证；入驻大型超市或天猫/京东等大型网络商城平台的必备条件；</p>
								<p>进驻各大型卖场、超市的资格凭证；入驻大型超市或天猫/京东等大型网络商城平台的必备条件；</p>
							</div>
						</div>
						<!--<p>TEXT</p>-->
						<a href="page-about.html" class="btn btn-white">立即咨询</a>
						<div class="space hidden-md hidden-lg"></div>
					</div>
					<div class="col-md-6">
						<div class="panel-group panel-dark" id="accordion">
							<div class="panel panel-default">
								<div class="panel-heading">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
											href="#collapseOne">
											<i class="fa fa-bold"></i>
											品牌保护
										</a>
									</h4>
								</div>
								<div id="collapseOne" class="panel-collapse collapse in">
									<div class="panel-body">
										只有核准注册后的商标才能打上TM标记，这是全国范围内唯一使用受法律保护的证明，如遇他人仿冒可通过法律手段维权，获得经济赔偿。但若被他人抢先注册，自己反而可能成为侵权被告
									</div>
								</div>
							</div>
							<div class="panel panel-default">
								<div class="panel-heading">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
											href="#collapseTwo" class="collapsed">
											<i class="fa fa-leaf"></i>
											竞争优势
										</a>
									</h4>
								</div>
								<div id="collapseTwo" class="panel-collapse collapse">
									<div class="panel-body">
										区别于其他同类商品独家专有，在赢得消费者信任的同时，树立家喻户晓的品牌形象，使品牌深入人心。</div>
								</div>
							</div>
							<div class="panel panel-default">
								<div class="panel-heading">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
											href="#collapseThree" class="collapsed">
											<i class="fa fa-html5"></i>
											潜在财富
										</a>
									</h4>
								</div>
								<div id="collapseThree" class="panel-collapse collapse">
									<div class="panel-body">
										商标的评估价值是企业总资产额度的一部分，还可作为无形资产进行转让、继承、抵押贷款等，开启财富之门。</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<br>
			</div>
		</div>
	</div>
</div>
<!-- section end -->

<script type="text/javascript">
$(function(){
	// input tips
	$('#q-input .search-query').focus(function(){
		if ($(this).val() == $(this).attr('title')) {
			$(this).val('').removeClass('tips');
		}
	}).blur(function(){
		if ($(this).val() == '' || $(this).val() == $(this).attr('title')) {
			$(this).addClass('tips').val($(this).attr('title'));
		}
	}).blur().autocomplete({
		'source':'suggest.php',
		'select':function(ev,ui) {
			$('#q-input .search-query').val(ui.item.label);
			$('#q-form').submit();
		}
	});
	// submit check
	$('#q-form').submit(function(){
		var $input = $('#q-input .search-query');
		if ($input.val() == $input.attr('title')) {
			alert('请先输入关键词');
			$input.focus();
			return false;
		}
	});	
});	
</script>
<script type="text/javascript">
	$(function(){
	  SyntaxHighlighter.all();
	});
	$(window).load(function(){
	  $('.flexslider').flexslider({
		animation: "slide",
		start: function(slider){
		  $('body').removeClass('loading');
		}
	  });
	});
  </script>

<?php $this->load->view('public/footer');?>